home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 1999 August / SGI Freeware 1999 August.iso / dist / fw_xfig.idb / usr / freeware / src / xfig / transfig.3.1.2 / fig2dev / iso2tex.c.z / iso2tex.c
Encoding:
Text File  |  1997-09-09  |  3.6 KB  |  141 lines

  1. /*
  2.  * TransFig: Facility for Translating Fig code
  3.  * Copyright (c) 1985 Supoj Sutantavibul
  4.  * Copyright (c) 1991 Micah Beck
  5.  *
  6.  * THE AUTHORS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
  7.  * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
  8.  * EVENT SHALL THE AUTHORS BE LIABLE FOR ANY SPECIAL, INDIRECT OR
  9.  * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
  10.  * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
  11.  * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  12.  * PERFORMANCE OF THIS SOFTWARE.
  13.  *
  14.  * The X Consortium, and any party obtaining a copy of these files from
  15.  * the X Consortium, directly or indirectly, is granted, free of charge, a
  16.  * full and unrestricted irrevocable, world-wide, paid up, royalty-free,
  17.  * nonexclusive right and license to deal in this software and
  18.  * documentation files (the "Software"), including without limitation the
  19.  * rights to use, copy, modify, merge, publish, distribute, sublicense,
  20.  * and/or sell copies of the Software, and to permit persons who receive
  21.  * copies from any such party to do so, with the only requirement being
  22.  * that this copyright notice remain intact.  This license includes without
  23.  * limitation a license to do the foregoing actions under any patents of
  24.  * the party supplying this software to the X Consortium.
  25.  */
  26.  
  27. /* map ISO-Font Symbols to appropriate sequences in TeX */
  28. /* Herbert Bauer 22.11.1991 */
  29.  
  30. /* B.Raichle 12.10.92, changed some of the definitions */
  31.  
  32.  
  33. /* B.Raichle 12.10.92, changed some of the definitions */
  34.  
  35.  
  36. char *ISOtoTeX[] =   /* starts at octal 240 */
  37. {
  38.   "{}",
  39.   "{!`}",    /* inverse ! */
  40.   "{}",        /* cent sign (?) */
  41.   "\\pounds{}",
  42.   "{}",        /* circle with x mark */
  43.   "{}",        /* Yen */
  44.   "{}",        /* some sort of space - doen't work under mwm */
  45.   "\\S{}",    /* paragraph sign */
  46.   "\\\"{}",        /* diaresis points */
  47.   "\\copyright{}",
  48.   "\\b{a}",
  49.   "\\mbox{$\\ll$}",        /* << */
  50.   "{--}",     /* longer dash - doesn't work with mwm */
  51.   "{-}",        /* short dash */
  52.   "{}",        /* trademark */
  53.   "{}",        /* overscore */
  54. /* 0xb0 */
  55.   "{\\lower.2ex\\hbox{\\char\\'27}}",        /* degree */
  56.   "\\mbox{$\\pm$}",    /* plus minus - math mode */
  57.   "\\mbox{$\\mathsurround 0pt{}^2$}",        /* squared  - math mode */
  58.   "\\mbox{$\\mathsurround 0pt{}^3$}",        /* cubed  - math mode */
  59.   "\\'{}",        /* accent egue */
  60.   "\\mbox{$\\mu$}",    /* greek letter mu - math mode */
  61.   "\\P{}",    /* paragraph */
  62.   "\\mbox{$\\cdot$}",    /* centered dot  - math mode */
  63.   "",
  64.   "\\mbox{$\\mathsurround 0pt{}^1$}",        /* superscript 1  - math mode */
  65.   "\\b{o}",
  66.   "\\mbox{$\\gg$}",        /* >> */
  67.   "\\mbox{$1\\over 4$}",    /* 1/4 - math mode */
  68.   "\\mbox{$1\\over 2$}",    /* 1/2 - math mode */
  69.   "\\mbox{$3\\over 4$}",    /* 3/4 - math mode */
  70.   "{?`}",        /* inverse ? */
  71. /* 0xc0 */
  72.   "\\`A",
  73.   "\\'A",
  74.   "\\^A",
  75.   "\\~A",
  76.   "\\\"A",
  77.   "\\AA{}",
  78.   "\\AE{}",
  79.   "\\c C",
  80.   "\\`E",
  81.   "\\'E",
  82.   "\\^E",
  83.   "\\\"E",
  84.   "\\`I",
  85.   "\\'I",
  86.   "\\^I",
  87.   "\\\"I",
  88. /* 0xd0 */
  89.   "{\\rlap{\\raise.3ex\\hbox{--}}D}", /* Eth */
  90.   "\\~N",
  91.   "\\`O",
  92.   "\\'O",
  93.   "\\^O",
  94.   "\\~O",
  95.   "\\\"O",
  96.   "\\mbox{$\\times$}",    /* math mode */
  97.   "\\O{}",
  98.   "\\`U",
  99.   "\\'U",
  100.   "\\^U",
  101.   "\\\"U",
  102.   "\\'Y",
  103.   "{}",        /* letter P wide-spaced */
  104.   "\\ss{}",
  105. /* 0xe0 */
  106.   "\\`a",
  107.   "\\'a",
  108.   "\\^a",
  109.   "\\~a",
  110.   "\\\"a",
  111.   "\\aa{}",
  112.   "\\ae{}",
  113.   "\\c c",
  114.   "\\`e",
  115.   "\\'e",
  116.   "\\^e",
  117.   "\\\"e",
  118.   "\\`\\i{}",
  119.   "\\'\\i{}",
  120.   "\\^\\i{}",
  121.   "\\\"\\i{}",
  122. /* 0xf0 */
  123.   "\\mbox{$\\partial$}",    /* correct?  - math mode */
  124.   "\\~n",
  125.   "\\`o",
  126.   "\\'o",
  127.   "\\^o",
  128.   "\\~o",
  129.   "\\\"o",
  130.   "\\mbox{$\\div$}",    /* math mode */
  131.   "\\o{}",
  132.   "\\`u",
  133.   "\\'u",
  134.   "\\^u",
  135.   "\\\"u",
  136.   "\\'y",
  137.   "{}",        /* letter p wide-spaced */
  138.   "\\\"y"
  139. };
  140.  
  141.